#include <iostream>
using namespace std;

int main()
{
	int a[] = {1,1,2};
	int i = 0;
	int n = sizeof(a) / sizeof(a[0]);
	int max_f = INT_MIN;
	int max_s = INT_MIN;
	int max_t = INT_MIN;
	long min = LONG_MIN;
	for (i = 0; i < n; i++)
	{
		if (max_f < a[i])
		{
			max_s = max_f;
			max_f = a[i];
		}
		else if (max_s < a[i])
		{
			max_t = max_s;
			max_s = a[i];
		}
		else if (max_t < a[i])
		{
			max_t = a[i];
		}
	}
	cout << " 1: " << max_f << " 2. " << max_s << " 3. " << max_t << endl;
	return 0;
}
